﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberList.aspx.cs" Inherits="WEALTH.Manager.Customer.MemberList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="../css/admin.global.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.content.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.utils.js"></script>
    <link href="../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript" src="../js/gridview_setting.js"></script>
    <script type="text/javascript">

        // 设置标题
        Index.SetTitle('会员列表');

        // 清空所有检索条件
        function cleartext() {

            jQuery("#txtM_Name").val("");
            jQuery("#txtM_Email").val("");
            jQuery("#txtM_Phone").val("");
            jQuery("#txtM_RealName").val("");

            return true;
        }       
    </script>
</head>
<body>
    <div class="container">
        <form id="Form1" runat="server">
        <div class="location">
            当前位置：会员管理 -&gt; 会员列表</div>
        <div class="blank10">
        </div>
        <div class="search block">
            <div class="h">
                <span class="icon-sprite icon-magnifier"></span>
                <h3>
                    快速搜索</h3>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <div class="search-bar" style="padding-left: -3px;">
                        <table width="100%">
                            <tr>
                                <td>
                                    <label class="first txt-green">
                                        会员账号：</label>
                                    <asp:TextBox ID="txtM_Name" runat="server" CssClass="input-small"></asp:TextBox>
                                    <label class="txt-green">
                                        手机号码：</label>
                                    <asp:TextBox ID="txtM_Phone" runat="server" CssClass="input-small"></asp:TextBox>
                                    <label class="txt-green">
                                        电子邮箱：</label>
                                    <asp:TextBox ID="txtM_Email" runat="server" CssClass="input-small"></asp:TextBox>
                                    <label class="txt-green">
                                        真实姓名：</label>
                                    <asp:TextBox ID="txtM_RealName" runat="server" CssClass="input-small"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <span class="btn-ctl-span">
                                        <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                                    <span class="btn-ctl-span">
                                        <input type="button" id="btnClear" onclick="cleartext();" value="清空" /></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="block">
            <div class="h">
                <span class="icon-sprite icon-list"></span>
                <h3>
                    信息列表</h3>
                <div class="bar">
                    <span class="btn-ctl-span">
                        <asp:Button ID="btnSubmit" runat="server" Text="删除" OnClick="btnSubmit_Click" /></span>
                </div>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <asp:GridView ID="gvMember" runat="server" CssClass="data-table" border="0" CellPadding="0"
                        Width="100%" EnableTheming="True" AllowSorting="True" AutoGenerateColumns="False"
                        OnRowDataBound="gvMember_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvMember_PageIndexChanging"
                        OnSorting="gvMember_Sorting" GridLines="None" OnDataBound="gvMember_DataBound">
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="M_ID" DataTextField="M_ID" HeaderText="ID"
                                NavigateUrl="../Customer/EditMember.aspx" DataNavigateUrlFormatString="../Customer/EditMember.aspx?MemberID={0}"
                                SortExpression="M_ID" ItemStyle-CssClass="l" ItemStyle-Width="2%" />
                            <asp:BoundField DataField="M_Name" SortExpression="M_Name" ItemStyle-Width="4%" ItemStyle-CssClass="l"
                                HeaderText="会员账号" />
                            <asp:BoundField DataField="M_Phone" SortExpression="M_Phone" ItemStyle-Width="4%"
                                ItemStyle-CssClass="l" HeaderText="手机号码" />
                                <asp:HyperLinkField DataNavigateUrlFields="M_Email" DataTextField="M_Email"
                                HeaderText="Email" ItemStyle-Width="4%" DataNavigateUrlFormatString="mailto:{0}"
                                SortExpression="M_Email" ItemStyle-CssClass="l" />                            
                            <asp:BoundField DataField="M_RealName" SortExpression="M_RealName" ItemStyle-Width="4%"
                                ItemStyle-CssClass="l" HeaderText="真实姓名" ReadOnly="True" />
                            <asp:BoundField DataField="M_IdcardType" SortExpression="M_IdcardType" ItemStyle-Width="4%"
                                ItemStyle-CssClass="l" HeaderText="证件类型" ReadOnly="True" />
                            <asp:BoundField DataField="M_Idcard" SortExpression="M_Idcard" ItemStyle-Width="3%"
                                ItemStyle-CssClass="l" HeaderText="证件号" ReadOnly="True" />
                            <asp:BoundField DataField="M_Number" SortExpression="M_Number" ItemStyle-Width="2%"
                                ItemStyle-CssClass="c" HeaderText="积分" ReadOnly="True" />
                            <asp:BoundField DataField="M_Status" SortExpression="M_Status" ItemStyle-Width="2%"
                                ItemStyle-CssClass="c" HeaderText="状态" ReadOnly="True" />
                               <asp:BoundField DataField="M_Vailecode" SortExpression="M_Vailecode" ItemStyle-Width="2%"
                                ItemStyle-CssClass="c" HeaderText="激活码" ReadOnly="True" /> 
                            <asp:BoundField DataField="M_AddDate" SortExpression="M_AddDate" ItemStyle-Width="7%"
                                ItemStyle-CssClass="l" HeaderText="注册时间" ReadOnly="True" />
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkdelete" runat="server" Checked="false" />
                                </ItemTemplate>
                                <ItemStyle Width="2%"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <script type="text/javascript">
                var pagerUrl = 'Customer/MemberList.aspx?pageIndex={0}';
                Pager.Output(pagerUrl,<%=pageSize %>, <%=pageIndex %>, <%=pageCount %>, <%=recordCount %>); //(urlFormat, pageSize, pageIndex, pageCount, recordCount)
                </script>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
